import bable from 'rollup-plugin-babel'
import serve from 'rollup-plugin-serve'
// 将高级语法转为低级语法
export default {
    input:'./src/index.js',// 入口文件
    output:{
        file:'dist/vue.js',
        format:'umd',
        name:'Vue',
        sourcemap:true
    },
    plugin:[
        bable({
            exclud:'node_modules/**'  //文件忽略
        }),
        serve({
            port:3000,
            contentBase:'',
            openPage:'/index.html'
        })
    ]
}